package com.example.model.dict.service;

import com.alibaba.fastjson.JSONObject;
import com.example.db.model.IPage;
import com.example.model.dict.model.DictiModel;

/**
 * @Classname DictiModelService
 * @Description TODO
 * @Date 2022/8/2 20:57
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public interface DictiModelService {

    public DictiModel save(DictiModel dictiModel);

    public IPage<DictiModel> parentPage(int page, int pageSize, JSONObject object);

    public IPage<DictiModel> childPage(int page,int pageSize,Object pid,JSONObject object);

    public DictiModel update(DictiModel dictiModel);

    public DictiModel getById(Object id);

    /**
     * 通过字典标识获取字典
     * @param DictiNo
     * @return
     */
    public DictiModel getDictiModelByDictiNo(String DictiNo);

}
